Optimal. Leaf size=261 \[ -\frac{b e^2 \text{PolyLog}(2,-c x)}{2 d^3}+\frac{b e^2 \text{PolyLog}(2,c x)}{2 d^3}-\frac{b e^2 \text{PolyLog}\left (2,1-\frac{2}{c x+1}\right )}{2 d^3}+\frac{b e^2 \text{PolyLog}\left (2,1-\frac{2 c (d+e x)}{(c x+1) (c d+e)}\right )}{2 d^3}+\frac{e^2 \log \left (\frac{2}{c x+1}\right ) \left (a+b \tanh ^{-1}(c x)\right )}{d^3}-\frac{e^2 \left (a+b \tanh ^{-1}(c x)\right ) \log \left (\frac{2 c (d+e x)}{(c x+1) (c d+e)}\right )}{d^3}+\frac{e \left (a+b \tanh ^{-1}(c x)\right )}{d^2 x}-\frac{a+b \tanh ^{-1}(c x)}{2 d x^2}+\frac{a e^2 \log (x)}{d^3}+\frac{b c e \log \left (1-c^2 x^2\right )}{2 d^2}+\frac{b c^2 \tanh ^{-1}(c x)}{2 d}-\frac{b c e \log (x)}{d^2}-\frac{b c}{2 d x} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.245221, antiderivative size = 261, normalized size of antiderivative = 1., number of steps used = 15, number of rules used = 13, integrand size = 19, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.684, Rules used = {5940, 5916, 325, 206, 266, 36, 29, 31, 5912, 5920, 2402, 2315, 2447} \[ -\frac{b e^2 \text{PolyLog}(2,-c x)}{2 d^3}+\frac{b e^2 \text{PolyLog}(2,c x)}{2 d^3}-\frac{b e^2 \text{PolyLog}\left (2,1-\frac{2}{c x+1}\right )}{2 d^3}+\frac{b e^2 \text{PolyLog}\left (2,1-\frac{2 c (d+e x)}{(c x+1) (c d+e)}\right )}{2 d^3}+\frac{e^2 \log \left (\frac{2}{c x+1}\right ) \left (a+b \tanh ^{-1}(c x)\right )}{d^3}-\frac{e^2 \left (a+b \tanh ^{-1}(c x)\right ) \log \left (\frac{2 c (d+e x)}{(c x+1) (c d+e)}\right )}{d^3}+\frac{e \left (a+b \tanh ^{-1}(c x)\right )}{d^2 x}-\frac{a+b \tanh ^{-1}(c x)}{2 d x^2}+\frac{a e^2 \log (x)}{d^3}+\frac{b c e \log \left (1-c^2 x^2\right )}{2 d^2}+\frac{b c^2 \tanh ^{-1}(c x)}{2 d}-\frac{b c e \log (x)}{d^2}-\frac{b c}{2 d x} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 5940
Rule 5916
Rule 325
Rule 206
Rule 266
Rule 36
Rule 29
Rule 31
Rule 5912
Rule 5920
Rule 2402
Rule 2315
Rule 2447
Rubi steps
\begin{align*} \int \frac{a+b \tanh ^{-1}(c x)}{x^3 (d+e x)} \, dx &=\int \left (\frac{a+b \tanh ^{-1}(c x)}{d x^3}-\frac{e \left (a+b \tanh ^{-1}(c x)\right )}{d^2 x^2}+\frac{e^2 \left (a+b \tanh ^{-1}(c x)\right )}{d^3 x}-\frac{e^3 \left (a+b \tanh ^{-1}(c x)\right )}{d^3 (d+e x)}\right ) \, dx\\ &=\frac{\int \frac{a+b \tanh ^{-1}(c x)}{x^3} \, dx}{d}-\frac{e \int \frac{a+b \tanh ^{-1}(c x)}{x^2} \, dx}{d^2}+\frac{e^2 \int \frac{a+b \tanh ^{-1}(c x)}{x} \, dx}{d^3}-\frac{e^3 \int \frac{a+b \tanh ^{-1}(c x)}{d+e x} \, dx}{d^3}\\ &=-\frac{a+b \tanh ^{-1}(c x)}{2 d x^2}+\frac{e \left (a+b \tanh ^{-1}(c x)\right )}{d^2 x}+\frac{a e^2 \log (x)}{d^3}+\frac{e^2 \left (a+b \tanh ^{-1}(c x)\right ) \log \left (\frac{2}{1+c x}\right )}{d^3}-\frac{e^2 \left (a+b \tanh ^{-1}(c x)\right ) \log \left (\frac{2 c (d+e x)}{(c d+e) (1+c x)}\right )}{d^3}-\frac{b e^2 \text{Li}_2(-c x)}{2 d^3}+\frac{b e^2 \text{Li}_2(c x)}{2 d^3}+\frac{(b c) \int \frac{1}{x^2 \left (1-c^2 x^2\right )} \, dx}{2 d}-\frac{(b c e) \int \frac{1}{x \left (1-c^2 x^2\right )} \, dx}{d^2}-\frac{\left (b c e^2\right ) \int \frac{\log \left (\frac{2}{1+c x}\right )}{1-c^2 x^2} \, dx}{d^3}+\frac{\left (b c e^2\right ) \int \frac{\log \left (\frac{2 c (d+e x)}{(c d+e) (1+c x)}\right )}{1-c^2 x^2} \, dx}{d^3}\\ &=-\frac{b c}{2 d x}-\frac{a+b \tanh ^{-1}(c x)}{2 d x^2}+\frac{e \left (a+b \tanh ^{-1}(c x)\right )}{d^2 x}+\frac{a e^2 \log (x)}{d^3}+\frac{e^2 \left (a+b \tanh ^{-1}(c x)\right ) \log \left (\frac{2}{1+c x}\right )}{d^3}-\frac{e^2 \left (a+b \tanh ^{-1}(c x)\right ) \log \left (\frac{2 c (d+e x)}{(c d+e) (1+c x)}\right )}{d^3}-\frac{b e^2 \text{Li}_2(-c x)}{2 d^3}+\frac{b e^2 \text{Li}_2(c x)}{2 d^3}+\frac{b e^2 \text{Li}_2\left (1-\frac{2 c (d+e x)}{(c d+e) (1+c x)}\right )}{2 d^3}+\frac{\left (b c^3\right ) \int \frac{1}{1-c^2 x^2} \, dx}{2 d}-\frac{(b c e) \operatorname{Subst}\left (\int \frac{1}{x \left (1-c^2 x\right )} \, dx,x,x^2\right )}{2 d^2}-\frac{\left (b e^2\right ) \operatorname{Subst}\left (\int \frac{\log (2 x)}{1-2 x} \, dx,x,\frac{1}{1+c x}\right )}{d^3}\\ &=-\frac{b c}{2 d x}+\frac{b c^2 \tanh ^{-1}(c x)}{2 d}-\frac{a+b \tanh ^{-1}(c x)}{2 d x^2}+\frac{e \left (a+b \tanh ^{-1}(c x)\right )}{d^2 x}+\frac{a e^2 \log (x)}{d^3}+\frac{e^2 \left (a+b \tanh ^{-1}(c x)\right ) \log \left (\frac{2}{1+c x}\right )}{d^3}-\frac{e^2 \left (a+b \tanh ^{-1}(c x)\right ) \log \left (\frac{2 c (d+e x)}{(c d+e) (1+c x)}\right )}{d^3}-\frac{b e^2 \text{Li}_2(-c x)}{2 d^3}+\frac{b e^2 \text{Li}_2(c x)}{2 d^3}-\frac{b e^2 \text{Li}_2\left (1-\frac{2}{1+c x}\right )}{2 d^3}+\frac{b e^2 \text{Li}_2\left (1-\frac{2 c (d+e x)}{(c d+e) (1+c x)}\right )}{2 d^3}-\frac{(b c e) \operatorname{Subst}\left (\int \frac{1}{x} \, dx,x,x^2\right )}{2 d^2}-\frac{\left (b c^3 e\right ) \operatorname{Subst}\left (\int \frac{1}{1-c^2 x} \, dx,x,x^2\right )}{2 d^2}\\ &=-\frac{b c}{2 d x}+\frac{b c^2 \tanh ^{-1}(c x)}{2 d}-\frac{a+b \tanh ^{-1}(c x)}{2 d x^2}+\frac{e \left (a+b \tanh ^{-1}(c x)\right )}{d^2 x}-\frac{b c e \log (x)}{d^2}+\frac{a e^2 \log (x)}{d^3}+\frac{e^2 \left (a+b \tanh ^{-1}(c x)\right ) \log \left (\frac{2}{1+c x}\right )}{d^3}-\frac{e^2 \left (a+b \tanh ^{-1}(c x)\right ) \log \left (\frac{2 c (d+e x)}{(c d+e) (1+c x)}\right )}{d^3}+\frac{b c e \log \left (1-c^2 x^2\right )}{2 d^2}-\frac{b e^2 \text{Li}_2(-c x)}{2 d^3}+\frac{b e^2 \text{Li}_2(c x)}{2 d^3}-\frac{b e^2 \text{Li}_2\left (1-\frac{2}{1+c x}\right )}{2 d^3}+\frac{b e^2 \text{Li}_2\left (1-\frac{2 c (d+e x)}{(c d+e) (1+c x)}\right )}{2 d^3}\\ \end{align*}
Mathematica [C] time = 6.12119, size = 435, normalized size = 1.67 \[ -\frac{b \left (c d e^2 \text{PolyLog}\left (2,e^{-2 \tanh ^{-1}(c x)}\right )-c d e^2 \text{PolyLog}\left (2,e^{-2 \left (\tanh ^{-1}\left (\frac{c d}{e}\right )+\tanh ^{-1}(c x)\right )}\right )-e^3 \sqrt{1-\frac{c^2 d^2}{e^2}} \tanh ^{-1}(c x)^2 e^{-\tanh ^{-1}\left (\frac{c d}{e}\right )}+2 c^2 d^2 e \log \left (\frac{c x}{\sqrt{1-c^2 x^2}}\right )+\frac{c d^3 \left (1-c^2 x^2\right ) \tanh ^{-1}(c x)}{x^2}+\frac{c^2 d^3}{x}+i \pi c d e^2 \log \left (\frac{1}{\sqrt{1-c^2 x^2}}\right )-\frac{2 c d^2 e \tanh ^{-1}(c x)}{x}-c d e^2 \tanh ^{-1}(c x)^2+2 c d e^2 \tanh ^{-1}(c x) \tanh ^{-1}\left (\frac{c d}{e}\right )+i \pi c d e^2 \tanh ^{-1}(c x)-2 c d e^2 \tanh ^{-1}(c x) \log \left (1-e^{-2 \tanh ^{-1}(c x)}\right )-i \pi c d e^2 \log \left (e^{2 \tanh ^{-1}(c x)}+1\right )+2 c d e^2 \tanh ^{-1}\left (\frac{c d}{e}\right ) \log \left (1-e^{-2 \left (\tanh ^{-1}\left (\frac{c d}{e}\right )+\tanh ^{-1}(c x)\right )}\right )+2 c d e^2 \tanh ^{-1}(c x) \log \left (1-e^{-2 \left (\tanh ^{-1}\left (\frac{c d}{e}\right )+\tanh ^{-1}(c x)\right )}\right )-2 c d e^2 \tanh ^{-1}\left (\frac{c d}{e}\right ) \log \left (i \sinh \left (\tanh ^{-1}\left (\frac{c d}{e}\right )+\tanh ^{-1}(c x)\right )\right )+e^3 \tanh ^{-1}(c x)^2\right )}{2 c d^4}+\frac{a e^2 \log (x)}{d^3}-\frac{a e^2 \log (d+e x)}{d^3}+\frac{a e}{d^2 x}-\frac{a}{2 d x^2} \]
Warning: Unable to verify antiderivative.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.125, size = 367, normalized size = 1.4 \begin{align*} -{\frac{a{e}^{2}\ln \left ( cxe+cd \right ) }{{d}^{3}}}-{\frac{a}{2\,d{x}^{2}}}+{\frac{a{e}^{2}\ln \left ( cx \right ) }{{d}^{3}}}+{\frac{ae}{{d}^{2}x}}-{\frac{b{\it Artanh} \left ( cx \right ){e}^{2}\ln \left ( cxe+cd \right ) }{{d}^{3}}}-{\frac{b{\it Artanh} \left ( cx \right ) }{2\,d{x}^{2}}}+{\frac{b{\it Artanh} \left ( cx \right ){e}^{2}\ln \left ( cx \right ) }{{d}^{3}}}+{\frac{b{\it Artanh} \left ( cx \right ) e}{{d}^{2}x}}-{\frac{b{e}^{2}{\it dilog} \left ( cx \right ) }{2\,{d}^{3}}}-{\frac{b{e}^{2}{\it dilog} \left ( cx+1 \right ) }{2\,{d}^{3}}}-{\frac{b{e}^{2}\ln \left ( cx \right ) \ln \left ( cx+1 \right ) }{2\,{d}^{3}}}+{\frac{b{e}^{2}\ln \left ( cxe+cd \right ) }{2\,{d}^{3}}\ln \left ({\frac{cxe+e}{-cd+e}} \right ) }+{\frac{b{e}^{2}}{2\,{d}^{3}}{\it dilog} \left ({\frac{cxe+e}{-cd+e}} \right ) }-{\frac{b{e}^{2}\ln \left ( cxe+cd \right ) }{2\,{d}^{3}}\ln \left ({\frac{cxe-e}{-cd-e}} \right ) }-{\frac{b{e}^{2}}{2\,{d}^{3}}{\it dilog} \left ({\frac{cxe-e}{-cd-e}} \right ) }-{\frac{{c}^{2}b\ln \left ( cx-1 \right ) }{4\,d}}+{\frac{bc\ln \left ( cx-1 \right ) e}{2\,{d}^{2}}}-{\frac{bc}{2\,dx}}-{\frac{bce\ln \left ( cx \right ) }{{d}^{2}}}+{\frac{{c}^{2}b\ln \left ( cx+1 \right ) }{4\,d}}+{\frac{bc\ln \left ( cx+1 \right ) e}{2\,{d}^{2}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \begin{align*} -\frac{1}{2} \, a{\left (\frac{2 \, e^{2} \log \left (e x + d\right )}{d^{3}} - \frac{2 \, e^{2} \log \left (x\right )}{d^{3}} - \frac{2 \, e x - d}{d^{2} x^{2}}\right )} + \frac{1}{2} \, b \int \frac{\log \left (c x + 1\right ) - \log \left (-c x + 1\right )}{e x^{4} + d x^{3}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F] time = 0., size = 0, normalized size = 0. \begin{align*}{\rm integral}\left (\frac{b \operatorname{artanh}\left (c x\right ) + a}{e x^{4} + d x^{3}}, x\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{b \operatorname{artanh}\left (c x\right ) + a}{{\left (e x + d\right )} x^{3}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]